import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import pageOne from '../components/pageOne.vue'
import pageTwo from '../components/pageTwo.vue'
import pageThree from '../components/pageThree.vue'
import pageFour from '../components/pageFour.vue'
import pageFive from '../components/pageFive.vue'
import pageSix from '../components/pageSix.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/one',
    name: 'pageone',
    component: pageOne
  },
  {
    path: '/two',
    name: 'pagetwo',
    component: pageTwo
  },
  {
    path: '/three',
    name: 'pagethree',
    component: pageThree
  },
  {
    path: '/Four',
    name: 'pagefour',
    component: pageFour
  },
  {
    path: '/Five',
    name: 'pagefive',
    component: pageFive
  },
  {
    path: '/Six',
    name: 'pagesix',
    component: pageSix
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
